﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using UIShell.OSGi;
using Pasys.PresentationCore;

namespace DBExplorer.Settings
{
    public partial class SettingA : Form
    {
        public SettingA()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
           var commandBus = BundleRuntime.Instance.GetFirstOrDefaultService<ICommandBusService>();
            commandBus.PublicCommandStatus("g1", CommandStatus.Disabled);

        }

        private void button2_Click(object sender, EventArgs e)
        {
            var commandBus = BundleRuntime.Instance.GetFirstOrDefaultService<ICommandBusService>();
            commandBus.PublicCommandStatus("g1", CommandStatus.Enabled);

        }
    }
}
